import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    dateParam: [],
    tabTitle: {},
    accessToken: ''
  },
  mutations: {
    SET_DATE: (state, dateParam) => {
      state.dateParam = dateParam
    },
    SET_TITLE: (state, title) => {
      state.tabTitle = title
    },
    SET_TOKEN: (state, accessToken) => {
      state.accessToken = accessToken
    }
  },
  actions: {},
  modules: {}
})
